import { FormSchema } from '/@/components/Form';

export const schemas: FormSchema[] = [
  {
    field: 'nickname',
    component: 'Input',
    label: '机器名称',
    helpMessage: '登记在平台的机器别名, 仅用于标记',
    colProps: {
      span: 24,
    },
    required: true,
  },
  {
    field: 'resend_times',
    component: 'Input',
    label: '重发次数',
    defaultValue: '1',
    helpMessage: '报文接收失败后的重发次数',
    colProps: {
      span: 24,
    },
  },
  {
    field: 'report_interval',
    component: 'Input',
    label: '上报粒度',
    helpMessage: '上报数据的时间间隔(单位: 秒)',
    defaultValue: '60',
    colProps: {
      span: 24,
    },
  },
  {
    field: 'fetch_timeout',
    component: 'Input',
    label: '抓取超时',
    defaultValue: '3',
    helpMessage: 'Agent抓取数据时间上限(单位: 秒)',
    colProps: {
      span: 24,
    },
  },
  {
    field: 'public_address',
    component: 'Input',
    label: '公网地址',
    helpMessage: '机器的公网IP地址, 可为空',
    colProps: {
      span: 24,
    },
  },
  {
    field: 'local_address',
    component: 'Input',
    label: '内网地址',
    helpMessage: '机器的内网IP地址, 可为空',
    colProps: {
      span: 24,
    },
  },
];
